package com.repast.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.repast.common.ServerResponse;
import com.repast.service.IFoodsTypeService;

@Controller
@RequestMapping("/foodsType/")
public class FoodsTypeController {

	@Autowired
	private IFoodsTypeService foodsTypeService;

	// 展示所有菜品类型
	@RequestMapping("list.do")
	@ResponseBody
	public ServerResponse selectGoodsTypeList() {
		ServerResponse response = foodsTypeService.selectFoodsTypeList();
		return response;
	}

}
